<div class="panel panel-default" ng-controller="InsuranceNavListCtrl">
	<div class="panel-heading">
		保险配置
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.name" class="form-control" placeholder="名称">
				</div>
			</div>
 			<div class="form-group col-md-4" ng-show="flag">
				<div class="col-md-11">
					<div class="input-group">
						<ui-select ng-model="dplist.selected" theme="bootstrap">
						<ui-select-match placeholder="所属模块">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices	repeat="dps in dplist | propsFilter: {name: $select.search}">
						<span ng-bind-html="dps.name | highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
						<span class="input-group-btn">
							<button ng-click="dplist.selected = undefined"
								class="btn btn-default">
								<span class="glyphicon glyphicon-trash"></span>
							</button>
						</span>
					</div>
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
					<th style="width:70px;">显示名称</th>
					<th style="width:70px;">购买标志</th>
					<th style="width:70px;">默认选项</th>
			        <th style="width:70px;">所属模块</th>
					<th style="width:80px;"></th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="ins in dataList">
			        <td></td>
					<td>{{ins.name}}</td>
					<td>{{ins.buyFlag?'购买':'不购买'}}</td>
					<td>{{ins.theDefault?'是':'否'}}</td>
					<td>{{ins.moduleId | moduleFilter}}</td>
					<td>
						<center>
							<a href tooltip="修改" has-authority="BOOKING_INSURANCE_NAV_UPDATE,RENT_INSURANCE_NAV_UPDATE,BUS_INSURANCE_NAV_UPDATE"><i class="fa fa-pencil fa-fw m-r-xs" ng-click="write('lg',ins,'update')" ></i></a>
						</center>
					</td>
				</tr>
				<tr ng-show="dataList==''">
				   <td colspan="8" style="text-align: center;">暂无保险配置信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>
